package com.example.demo.service.serviceImpl;

import com.example.demo.dao.SystemLogDao;
import com.example.demo.entity.SystemLog;
import com.example.demo.service.SystemLogService;
import com.example.demo.util.Result;
import com.example.demo.util.ResultSubmit;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.text.SimpleDateFormat;

/**
 * (SystemLog)表服务实现类
 *
 * @author makejava
 * @since 2025-04-22 14:35:16
 */
@Service
public class SystemLogServiceImpl implements SystemLogService {
    @Resource
    private SystemLogDao dao;
    SimpleDateFormat format =
            new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
    @Override
    public Result querySystemLog(SystemLog systemLog) {
        return ResultSubmit.success(dao.queryAllByLimit(systemLog));
    }
    @Override
    public void insertSystemLog(SystemLog systemLog) {
        dao.insert(systemLog);
    }
}
